//==============================================================================
// Hoplite_Anim.txt
//==============================================================================

//==============================================================================
define LargeGreekShield
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				visual Attachments G Shield Large Copper
				ReplaceTexture Attachments G Shield Copper/Mercenary Hoplite Shield
			}
		}
	}
}

//==============================================================================
define Head
{
    SetSelector
    {
        set hotspot
        {
            version
            {
                Visual Infantry G Hoplite Head Bronze
				ReplaceTexture infantry g hoplite head bronze/Mercenary Hoplite Helmet
            }
        }
    }
}

//==============================================================================
define Spear
{
    SetSelector
    {      
        set hotspot
        {
            version
            {
                Visual Attachments A Spear Bronze
            }
        }
    }
}

//==============================================================================
anim Bored
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry G Hoplite_BoredA
				ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				connect RightHand Spear hotspot
				connect LeftForearm LargeGreekShield hotspot
				Connect TopOfHead Head hotspot
			}
		}
	}
}


//==============================================================================
anim Idle
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry G Hoplite_IdleA
				ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				connect RightHand Spear hotspot
				connect LeftForearm LargeGreekShield hotspot
				Connect TopOfHead Head hotspot
			}
		}	
	}
}

//==============================================================================
anim Walk
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Infantry G Hoplite_walkA
                tag FootstepLeft 0.00 true   
                tag FootstepRight 0.50 true
			    tag SpecificSoundSet 0.00 false SoldierMarching checkVisible
			    tag SpecificSoundSet 0.50 false SoldierMarching checkVisible
				ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				connect RightHand Spear hotspot
				connect LeftForearm LargeGreekShield hotspot
				Connect TopOfHead Head hotspot
			}
		}
	}
}

//==============================================================================
anim Attack
{
	SetSelector
	{
	TechLogic none/Relic Gjallarhorn
	SetSelector
	{
		set hotspot
		{
			version
			{
				 Visual Infantry G Hoplite_AttackA
                 tag Attack 0.49 true   
                 tag GenericSound 0.40 true   
				 ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				 connect RightHand Spear hotspot
				 connect LeftForearm LargeGreekShield hotspot
				 Connect TopOfHead Head hotspot
			}
			version
			{
				 Visual Infantry G Hoplite_AttackB
                 tag Attack 0.51 true   
                 tag GenericSound 0.40 true   
				 ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				 connect RightHand Spear hotspot
				 connect LeftForearm LargeGreekShield hotspot
				 Connect TopOfHead Head hotspot
			}
		}		
	}
	SetSelector
	{
		set hotspot
		{
			version
			{
				 Visual Infantry G Hoplite_AttackA
                 tag Attack 0.49 true   
                 tag GenericSound 0.40 true   
				 ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				 connect RightHand Spear hotspot
				 connect LeftForearm LargeGreekShield hotspot
				 Connect TopOfHead Head hotspot
				 length 1.0
			}
			version
			{
				 Visual Infantry G Hoplite_AttackB
                 tag Attack 0.51 true   
                 tag GenericSound 0.40 true   
				 ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				 connect RightHand Spear hotspot
				 connect LeftForearm LargeGreekShield hotspot
				 Connect TopOfHead Head hotspot
				 length 0.78
			}
		}		
	}
}
}

//==============================================================================
anim Death
{
    SetSelector
    {
        set hotspot
        {
            version
            {
				Visual Infantry G Hoplite_DeathA
                tag SpecificSoundSet 0.11 false MaleDeath checkVisible 
				ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				connect RightHand Spear hotspot
				connect LeftForearm LargeGreekShield hotspot
				Connect TopOfHead Head hotspot
            }
        }
    }
}

//==============================================================================
anim Flail
{
    SetSelector
    {
        set hotspot
        {
            version
            {
				Visual Infantry G Hoplite_FlailA
				tag SpecificSoundSet 0.25 false MaleFlail checkVisible				
				ReplaceTexture Infantry G Hoplite Standard/Mercenary Hoplite
				connect RightHand Spear hotspot
				connect LeftForearm LargeGreekShield hotspot
				Connect TopOfHead Head hotspot
            }
        }
    }
}